<UserControl 
    x:Class="ibba.src.noriskbo.MainPageLM"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
    xmlns:uriMapper="clr-namespace:System.Windows.Navigation;assembly=System.Windows.Controls.Navigation"
    xmlns:slc="clr-namespace:ibba.src.sl.componentes;assembly=ibba.src.sl.componentes"
    xmlns:local="clr-namespace:ibba.src.noriskbo"         
	mc:Ignorable="d" 
    d:DesignWidth="600" d:DesignHeight="300">
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="40"/>
            <RowDefinition />
            <RowDefinition Height="60"/>
        </Grid.RowDefinitions>
        
        <local:SearchBar x:Name="barraPesquisa" d:LayoutOverrides="Width, Height"/>
        
        <navigation:Frame x:Name="ContentFrame" Grid.Row="1" 
                          Source="/PageEnquadramento" 
                          Navigated="ContentFrame_Navigated" 
                          Navigating="ContentFrame_Navigating"
                          NavigationFailed="ContentFrame_NavigationFailed">
            <navigation:Frame.UriMapper>

                <uriMapper:UriMapper>
                    <uriMapper:UriMapping Uri="" MappedUri="/views/PageLancamentoManual.xaml"/>
                    <!--<uriMapper:UriMapping Uri="/{LM}/{pageName}" MappedUri="/views/{pageName}.xaml"/>-->
                    <uriMapper:UriMapping Uri="/{pageName}/{param}" MappedUri="/views/{pageName}.xaml?parametro={param}"/>
                    <uriMapper:UriMapping Uri="/{pageName}" MappedUri="/views/{pageName}.xaml"/>                    
                </uriMapper:UriMapper>
            </navigation:Frame.UriMapper>
        </navigation:Frame>

        <slc:ControlMenuBar x:Name="barraMenu" Grid.Row="1" Grid.RowSpan="2" Height="80" VerticalAlignment="Bottom"
                            Background="{StaticResource BlueStrong}"/>
        

    </Grid>
</UserControl>
